package com.wnhz.work.yz.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.wnhz.work.yz.BaseActivity;
import com.wnhz.work.yz.R;

/**
 * ---工作
 */
public class JobActivity extends BaseActivity implements View.OnClickListener {
    private TextView title;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_job);
        initData();
        initView();
    }

    private void initData() {

    }

    private void initView() {
        title = (TextView) findViewById(R.id.view_main_middle_title);
        title.setText("工作");
        findViewById(R.id.btn_main_left).setOnClickListener(this);
        findViewById(R.id.rl_reserve).setOnClickListener(this);
        findViewById(R.id.rl_audit).setOnClickListener(this);
        findViewById(R.id.rl_records).setOnClickListener(this);
        findViewById(R.id.rl_plan).setOnClickListener(this);
        findViewById(R.id.rl_task).setOnClickListener(this);
        findViewById(R.id.rl_group).setOnClickListener(this);
        findViewById(R.id.rl_jiedan).setOnClickListener(this);
        findViewById(R.id.rl_yanshou).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        Intent intent;
        switch (v.getId()) {
            case R.id.btn_main_left:
                finish();
                break;

            //会员的预约
            case R.id.rl_reserve:
                intent = new Intent(this, MemberReserveActivity.class);
                startActivity(intent);
                break;
            case R.id.rl_audit:
                intent = new Intent(this, JobauditActivity.class);
                startActivity(intent);
                break;
            //备案
            case R.id.rl_records:
                intent = new Intent(this, RecordsActivity.class);
                startActivity(intent);
                break;
            //计划
            case R.id.rl_plan:
                intent = new Intent(this, PlansActivity.class);
                startActivity(intent);
                break;
            //任务
            case R.id.rl_task:
                intent = new Intent(this, TaskActivity.class);
                startActivity(intent);
                break;
            //团队
            case R.id.rl_group:
                intent = new Intent(this, GroupActivity.class);
                startActivity(intent);
                break;

            //最新验收=====
            case R.id.rl_jiedan:
                // intent = new Intent(getActivity(), ReceiveAllActivity.class);
                intent = new Intent(this, ReceiveAll2Activity.class);
                startActivity(intent);
                break;

            //最新验收
            case R.id.rl_yanshou:
                intent = new Intent(this, YanShouAllActivity.class);
                startActivity(intent);
                break;
            default:
                break;
        }
    }
}
